package com.example.j2025_11_10.mapper;

import com.example.j2025_11_10.Model.BookInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface QueryBookByIdMapper {
    @Select("SELECT * FROM book_info WHERE `status` = 1 and id = #{bookId}")
    BookInfo queryBookById(Integer bookId);

}
